package net.aiform.template.action;

import javax.servlet.http.HttpServletRequest;

import net.aiform.template.pojo.Template;
import net.aiform.template.service.TemplateService;

import org.apache.log4j.Logger;
import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.Preparable;

public final class DesignTemplateAction implements Preparable, ServletRequestAware {
	private Logger log = Logger.getLogger(this.getClass());
	private TemplateService templateService;
	private HttpServletRequest req;
	private Template template;
	private String arg1;

	public String execute() {
		return Action.SUCCESS;
	}

	public DesignTemplateAction() {
		super();
	}

	public DesignTemplateAction(TemplateService templateService) {
		this.templateService = templateService;
	}

	public void prepare() throws Exception {

	}

	public String getArg1() {
		return arg1;
	}

	public void setArg1(String arg1) {
		this.arg1 = arg1;
	}

	@Override
	public void setServletRequest(HttpServletRequest request) {
		this.req = request;
	}

	public TemplateService getTemplateService() {
		return templateService;
	}

	public void setTemplateService(TemplateService templateService) {
		this.templateService = templateService;
	}

	public Template getTemplate() {
		return template;
	}

	public void setTemplate(Template template) {
		this.template = template;
	}

	public Logger getLog() {
		return log;
	}

	public void setLog(Logger log) {
		this.log = log;
	}

	public HttpServletRequest getReq() {
		return req;
	}

	public void setReq(HttpServletRequest req) {
		this.req = req;
	}
}
